/**
 * @author caesar
 * @date 2025/6/30
 * @apiNote
 */
//打印空心菱形
public class homework2_5 {
    public static void main(String[] args) {
        int line = 9;
        int center = line / 2;
        for (int i = 0; i < line; i++) {
            for (int j = 0; j < line; j++) {
                if (Math.abs(i - center) + Math.abs(j - center) == center) {
                    System.out.print("*");
                } else {
                    System.out.print(" ");
                }
            }
            System.out.println();
        }
    }
}
